package main

import (
	"fmt"
	"goblog/accountservice/dbclient"
	"goblog/accountservice/service"
)

var appname = "accountservice"

func main() {

	fmt.Printf("Starting %v\n", appname)
	initalizeBoltClient()
	service.StartWebServer("6767")
}

//初始化账号
func initalizeBoltClient() {
	service.DBClient = &dbclient.BoltClient{}
	service.DBClient.OpenBoltDb()
	service.DBClient.Seed()
}
